Skip to content

Conversation

@Darshan808
Copy link
Contributor

References jupyterlab/jupyterlab#17632

Description

This PR introduces a clearOutputs() method to the ISharedCodeCell interface and its implementation in YCodeCell. This method provides a clean and direct way to remove all outputs from a code cell in the shared model.

This change is motivated by a bug in JupyterLab where uncoalesced stream outputs can persist in the cell output area. The root cause is that the frontend coalesces outputs, but the shared model retains multiple entries, making it tricky to clear all outputs using updateOutputs() when their lengths differ.

@krassowski krassowski added the enhancement New feature or request label Jun 19, 2025
@Darshan808 Darshan808 requested a review from krassowski June 27, 2025 06:06
Copy link
Collaborator

@krassowski krassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you!

@krassowski krassowski merged commit 280e6e3 into jupyter-server:main Jul 1, 2025
10 checks passed
@krassowski
Copy link
Collaborator

Releasing this as v3.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants